import Vue from 'vue'
import Router from 'vue-router'
// 注册路由
Vue.use(Router)

// 登录
import login from '../components/page/login/login'

//首页
import homePage from '../components/page/homePage/homePage'

//拼接首页入口
import homePageIndex from '../components/page/homePage/index'

// 忘记密码
import forgetPasswordForm from '../components/page/forgetPasswordForm/forgetPasswordForm'

//全部课程
import allVideo from '../components/page/allVideo/index'

// 播放课程
import videoplay from '../components/page/videoPlay/index'

//搜索课程
import search from '../components/page/search/index'
// 个人中心-我的课程
import myVourse from '../components/page/myVourse/index'
// 确认订单
import confirmOrder from '../components/page/confirmOrder/index'
// 我的订单
import myorder from '../components/page/myorder/index'

// 支付中心
import payConter from '../components/page/payConter/index'
// 个人设置
import user from '../components/page/user/index'
export default new Router({
  routes: [
    {path: '/',name: 'login', component: login },
    {path: '/forgetPasswordForm', name: 'forgetPassword', component: forgetPasswordForm },
    {
    	path: '/homePage',name: 'homePage',component: homePage,
    	children: [
    		{path:'homePageIndex',component: homePageIndex},
		    {path: 'allVideo',name: 'allVideo',component: allVideo},
		    {path: 'videoplay',name: 'videoplay',component: videoplay},
            {path: 'search',name: 'search',component: search},
            {path: 'myVourse',name: 'myVourse',component: myVourse},
		    {path: 'myorder',name: 'myorder',component: myorder},
		    {path: 'confirmOrder',name: 'confirmOrder',component: confirmOrder},
            {path: 'payConter',name: 'payConter',component: payConter},
            {path: 'user',name: 'user',component: user},
    	]	
	  }
  ]
})
